home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 351 < prev    next >
Encoding:
Text File  |  1996-08-06  |  2.2 KB  |  58 lines

  1. Path: chronicle.mti.sgi.com!auster
  2. From: 75032.2070@compuserve.com (Mike Enright)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: Are all Windows programs ill-formed?
  5. Date: 12 Feb 1996 10:20:34 PST
  6. Organization: CTS Network Services
  7. Approved: austern@isolde.mti.sgi.com
  8. Message-ID: <4fke0b$brq@news3.cts.com>
  9. References: <AE5J83na99@qsar.chem.msu.su> <9602010236.26117@mulga.cs.mu.OZ.AU> <9602021032.AA05302@lts.sel.alcatel.de> <311417C8.4016@suphys.physics.su.oz.au> <KANZE.96Feb9173036@gabi.gabi-soft.fr>
  10. NNTP-Posting-Host: isolde.mti.sgi.com
  11. X-Original-Date: Sun, 11 Feb 1996 09:46:18 GMT
  12. X-Newsreader: Forte Free Agent 1.0.82
  13. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  14.     iQBVAwUBMR+E/Uy4NqrwXLNJAQGEtgH/UkzMPTNon1myq9Jmfx8lu1Nym0t1q+tW
  15.     DPzq5oYfkg9ayWsIv7yIOV7zkdBfSjIHMUIuHjiQK8pphxFdAmytSw==
  16.     =9ePu
  17. Originator: austern@isolde.mti.sgi.com
  18.  
  19. kanze@gabi.gabi-soft.fr (J. Kanze) wrote:
  20.  
  21. <snip>
  22. >> > |> But if a compiler does not accept
  23. >> > 
  24. >> > |>      int main() { return 0; }
  25. >> > 
  26. >> > |> as a complete program, then that compiler is not a conforming C or C++
  27. >> > |> implementation.
  28. <snip>
  29. >If there is not a way to get the above program to compile, link and
  30. >execute, however, then I will have to take back my defense of Microsoft
  31. >in previous postings.  I find this hard to believe, however.
  32.  
  33. The program does compile, link, and run, with the command 
  34.  
  35.    cl test.cpp 
  36.  
  37. The result was a Win32 version 4 console application.
  38.  
  39. I've written console apps under Windows 95 for file-format hacking and
  40. so forth, and I've used Win32 console apps (and OS/2 character-mode
  41. apps for that matter) as the basis of porting ray tracers and so
  42. forth. More than once, I've had to page past Unix-bigotted rants about
  43. how such and such wouldn't work on intel-based machines, as I scanned
  44. through the readme's of portable programs. 
  45.  
  46. The standards for C and C++ are working. There doesn't happen to be a
  47. standard GUI library, which is why you have funky main functions under
  48. some of the GUI's.
  49.  
  50.  
  51. --------------
  52. Mike Enright
  53. 75032.2070@compuserve.com
  54. ---
  55. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  56.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy is
  57.   in http://reality.sgi.com/employees/austern_mti/std-c++/policy.html. ]
  58.